import { Component, OnInit } from '@angular/core';
import { NbWindowRef } from '@nebular/theme';
import { DtoResultObj } from 'src/app/Model/DtoRec/DtoResult';

@Component({
  selector: 'app-check-weekday',
  templateUrl: './check-weekday.component.html',
  styleUrls: ['./check-weekday.component.scss']
})
export class CheckWeekdayComponent implements OnInit {

  bean = {};
  buttons = []

  constructor(public windowRef: NbWindowRef) { }

  ngOnInit(): void {
  }


  ButtonClick(even) {
    even(this.bean)
      .then((x: DtoResultObj<any>) => {
        console.log(x)
        this.windowRef.close();

        if (x.success) {
        }
      })
  }
}
